package de.hauschild.orbitvm.vm.instruction.impl.single;


public class Sqrt extends AbstractSingleInstruction {

  public Sqrt(final int theInstructionCounter, final int theArgumentAdress) {
    super(theInstructionCounter, theArgumentAdress);
  }

  @Override
  protected double evaluate(final double argument) {
    return Math.sqrt(argument);
  }

  @Override
  protected String getName() {
    return "Sqrt";
  }

}
